這個情況怎么弄 每次都這樣

0) {
$.ajax({
type: "POST",
url: "/bbs/flagaicomment",
data: { id: _this.parent().parent().data("commentid"), Type: 0 },
dataType: "json",
success: function (json) {
window.location.reload();
},
error: function (err) {
$.messager.alert("", "頁面請求失敗,請刷新重試!");
}
});
} else {
_this.prev().find("img").attr("data-hideaigc", true)
$.ajax({
type: "POST",
url: "/bbs/updatereply",
data: {
id: _this.parent().parent().data("commentid"),
pid: EditPId,
content: encodeURIComponent(_this.prev().html()),
__RequestVerificationToken: $('[name=__RequestVerificationToken]').val(),
Type: 0,
userSelectAIGCTag: false,
isauthorsee: false,
imgcode: "",
},
dataType: "json",
success: function (json) {
window.location.reload();
},
error: function (err) {
$.messager.alert("", "頁面請求失敗,請刷新重試!");
}
});
}
});
$('#alertMsg_Cancel')[0].style.marginBottom = "20px"
})
// 普通貼/攝影貼/投票貼帖子正文隱藏ai標識
$(".BSHARE_POP").on("click", ".AiClassTip", function () {
if (!LoginInforIsAdmin) {
return;
}
var _this = $(this)
var ImageUrl = parentTitle.indexOf("蓋樂世影像") != -1 ? _this.parent().find(".ueditor_img").attr("src") : _this.prev().attr("src")
$.messager.confirm('', "是否要隱藏此標識", function () {
var obj = {
Content: encodeURIComponent(EditContent.replace(`src="${ImageUrl}"`, `src="${ImageUrl}" data-HideAigc="true"`)),
PId: EditPId,//帖子ID
TId: EditTId,//主題
FId: EditFId,//二級版塊
IsAuthorSee: EditIsAuthorSee,//回復僅作者可見
PTId: EditPTId,//帖子分類
HaveImg: EditHaveImg,//內(nèi)容是否有圖片
Img: EditImg,//代表圖片地址
HaveVideo: EditHaveVideo,//視頻
Attachment: EditAttachment,//附件
Status: EditStatus,
PublishTime: EditPublishTime,
IsSync: EditIsSync,
Title: eventshareTitle,
Token: data_token,
__RequestVerificationToken: $('[name=__RequestVerificationToken]').val(),
AigcHideEdit: true,
}
$.post("/BBS/UpdatePost", obj, function (json) {
window.location.reload();
});
}, function () {
});
$('#alertMsg_Cancel')[0].style.marginBottom = "20px"
})
})
function controlAITips(info) {
if (isUserStatementAI(info)) {
//顯示作者聲明:含有AI生成內(nèi)容 >
$('.AiClassFixed').html('

作者聲明:含有AI生成內(nèi)容
>').show();
}
else if (isSystemAI(info)) {
$('.AiClassFixed').hide();
if (!ShowImageExifInfo) {
$(".BSHARE_POP img,.TuShangClassSwiper img").each(function (index, ele) {
var $this = $(this);
var aigc = $this.data('aigc');
var HideAigc = $this.data('hideaigc');
if (!HideAigc && aigc != null && (aigc.startsWith('1|') || aigc.startsWith('0|1|'))) {
$this.after(`

疑似使用了AI生成技術(shù),請謹慎甄別
>`);
$this.on('load', function () {
$this.parent().find('.AiClassTip')[0].style.width = $this.width() + "px"
})
}
});
}
}
else if (isAdminTagAI(info)) {
$('.AiClassFixed').html('

疑似含有AI生成內(nèi)容,請謹慎甄別
>').show();
}
else {
$('.AiClassFixed').hide();
}
}